# locust777

//
////函数练习11
//
////加法
//int Add(int x,int y)
//{
//return x+y;
//}
////比较
//int Max(int x,int y)
//{
//	return (x > y)?x:y;
//}
//
////交换
//int change(int *x,int *y)
//{
//int tmp = 0;
//tmp = *x;
//*x = *y;
//*y = tmp;
//return *x,*y;
//}
//
//#include<stdio.h>
//#include<windows.h>
//int main()
//{
//	int a = 0;
//	int b = 0;
//	scanf("%d%d",&a,&b);
//	printf("操作前：a = %d,n = %d\n",a,b);
//	printf("比较大的是：%d\n",Max(a,b));
//	printf("加起来是:%d\n",Add(a,b));
//	change(&a,&b);
//	printf("交换操作后：a = %d,b = %d\n",a,b);
//
//system("pause");
//return 0;
//}



//大小写字母转换2
#include<stdio.h>
#include<windows.h>
int main()
{
	char n; //char占一个字符
	printf("输入一个字母：\n");
	scanf("%c",&n); //字符串输入为%c
	if(n >= 'a' && n <= 'z')
		printf("%c\n",n-32);
	if(n >= 'A' && n <= 'Z')
		printf("%c\n",n+32);
system("pause");
return 0;
}
